import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scanne = new Scanner(System.in);
        StringBuilder sc = new StringBuilder();

        while (scanne.hasNext()){
            int n=scanne.nextInt();


            for (int i = 0; i < n; i++) {
                sc.append(i);
            }
            int h=scanne.nextInt();
            int w=scanne.nextInt();
            System.out.println(sc.substring(h,w));

        }

        scanne.close();
    }
}
